﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AreaFrom.aspx.cs" Inherits="BaseData_CustomForm" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>当前位置：基础数据→区域设置</title>
	<link href="../css/css.css" rel="stylesheet" type="text/css" />
	<!--#include file="../js/KeyControl.js"-->
	<base target="_self" />	
	<script type="text/javascript" language="JavaScript">
		function CheckFormMenu()
		{		
		if(document.form1.txtName.value.length >20)
		{
			alert("大类名称字符超过有效长度！");
			document.form1.txtName.focus();
			return false;
		}	
		   var btnSave=window.document.getElementById("btnSave");
		   if(btnSave!=null)
		   btnSave.click();
		}
			
	</script>

</head>
<body  style =" background-image :url('../images/hit_bg.gif');"> 
	<% 
		Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
		Response.Expires = 0;
		Response.CacheControl = "no-cache";
	%>
	<form id="form1" runat="server">
		<div>
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9F9FB" class="border11">
  <tr><td height="4"></td></tr>
  <tr>
    <td align="center"><fieldset style="width: 98%; height: 100%; padding: 2"><legend>区域信息</legend>
<table style ="width :98%; height:40;" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
    <table width="100%" border="0" cellspacing="1" cellpadding="1" bgcolor="#327AC6">
              <tr bgcolor="#F9F9FB"> 
                <td style ="width :50;" align="right">编码</td>
                <td align="left"><asp:TextBox ID="txtAreaID" runat="server" MaxLength="5" Width="100px"></asp:TextBox><font color="#FF0000">*</font>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtAreaID"
                        ErrorMessage="RegularExpressionValidator" ValidationExpression="^[0-9]\d*$">由0-9数字组成</asp:RegularExpressionValidator>
                   </td>
                <td align="right">区域名</td>
                <td align="left"><asp:TextBox ID="txtName" runat="server" MaxLength="20" Width="100px"></asp:TextBox><font color="#FF0000">*</font><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="-必填" ControlToValidate="txtName"></asp:RequiredFieldValidator>
				</td>
              </tr>
            </table>
            </td>
  </tr>
</table>
</fieldset></td>
  </tr>
  <tr><td height="30"><div align="center">
							<asp:Button ID="btnSave" runat="server" Text="提交" Width="0px" Height="0px" BackColor="White"
								BorderColor="White" ForeColor="White" />
							&nbsp;&nbsp;&nbsp;
							<input type="button" id="Button1" value="提交" class="button02" onclick="CheckFormMenu();" />
							<input type="button" id="btnClose" value="关闭" class="button02" onclick="window.close();" />
						</div></td></tr>
</table>


		</div>
	</form>
</body>
</html>

